import './styles/common.less'
import './styles/element.less'
import { createApp } from 'vue'
// 引入 Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import locale from 'element-plus/dist/locale/zh-cn.mjs'

import App from './App.vue'
import pinia from './components/pinia.js' // 引入 Pinia
const app = createApp(App)
app.use(pinia)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import router from './router'
import components from './components/index.js'
app.use(router).use(ElementPlus, { locale }).use(components).mount('#app')
